]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overviewControls: Remove ControlsLayout
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Fri, 27 Nov 2020 13:59:29 +0000 (10:59 -0300)
committerMarge Bot <marge-bot@gnome.org>
Wed, 2 Dec 2020 22:43:04 +0000 (22:43 +0000)
ControlsLayout is a tiny layout manager whose only purpose
is emit "allocation-changed" after allocation. This signal
was listened to update the workspaces actual geometry.

However, since d66cd0d2067a, ControlsManager doesn't listen
to this signal anymore, rendering the class useless.

Remove ControlsLayout.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1518>

js/ui/overviewControls.js

index b5e89bb1644b6fb08fac822ec7e37e5a28182297..3d313e7d40446733c5b4874b9c42d8bc441ecb02 100644 (file)
@@ -394,21 +394,11 @@ class DashSpacer extends St.Widget {
     }
 });
 
-var ControlsLayout = GObject.registerClass({
-    Signals: { 'allocation-changed': {} },
-}, class ControlsLayout extends Clutter.BinLayout {
-    vfunc_allocate(container, box) {
-        super.vfunc_allocate(container, box);
-        this.emit('allocation-changed');
-    }
-});
-
 var ControlsManager = GObject.registerClass(
 class ControlsManager extends St.Widget {
     _init(searchEntry) {
-        let layout = new ControlsLayout();
         super._init({
-            layout_manager: layout,
+            layout_manager: new Clutter.BinLayout(),
             x_expand: true,
             y_expand: true,
             clip_to_allocation: true,